package com.qianfeng.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 映射数据库收费项目病人中间表
 */
public class ChargeProjectRegistration {
    private Integer cprId;//ID
    private Integer cpId;//收费项ID关联收费项表主键
    private Integer rId;//挂号编号，关联挂号表主键
    @JsonFormat
    private Date cprTime;//创建时间
    @JsonFormat
    private Date updateTime;//设置当前时间，并且自动更更新时间
    private ChargeProject chargeProject;//关联收费表
    private Registration registration;//关联病人表

    public ChargeProjectRegistration() {
    }

    public Integer getCprId() {
        return cprId;
    }

    public void setCprId(Integer cprId) {
        this.cprId = cprId;
    }

    public Integer getCpId() {
        return cpId;
    }

    public void setCpId(Integer cpId) {
        this.cpId = cpId;
    }

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public Date getCprTime() {
        return cprTime;
    }

    public void setCprTime(Date cprTime) {
        this.cprTime = cprTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public ChargeProject getChargeProject() {
        return chargeProject;
    }

    public void setChargeProject(ChargeProject chargeProject) {
        this.chargeProject = chargeProject;
    }

    public Registration getRegistration() {
        return registration;
    }

    public void setRegistration(Registration registration) {
        this.registration = registration;
    }

    @Override
    public String toString() {
        return "ChargeProjectRegistration{" +
                "cprId=" + cprId +
                ", cpId=" + cpId +
                ", rId=" + rId +
                ", cprTime=" + cprTime +
                ", updateTime=" + updateTime +
                ", chargeProject=" + chargeProject +
                ", registration=" + registration +
                '}';
    }
}
